package org.iati.mobile;

import java.util.List;

import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.ElementList;
import org.simpleframework.xml.Root;

@Root(name="exist:result", strict = false)
public class Results {
	@Attribute(name="hits", required=false)
	private long existHits;
	
	@Attribute(name="start", required=false)
	private long existStart;
	
	@Attribute(name="count", required=false)
	private long existCount;
	
	@ElementList(name="item", inline=true, required=false)
	private List<Item> items;

	/**
	 * @return the items
	 */
	public List<Item> getItems() {
		return items;
	}

	/**
	 * @param items the items to set
	 */
	public void setItems(List<Item> items) {
		this.items = items;
	}

	/**
	 * @return the existHits
	 */
	public long getExistHits() {
		return existHits;
	}

	/**
	 * @param existHits the existHits to set
	 */
	public void setExistHits(long existHits) {
		this.existHits = existHits;
	}

	/**
	 * @return the existStart
	 */
	public long getExistStart() {
		return existStart;
	}

	/**
	 * @param existStart the existStart to set
	 */
	public void setExistStart(long existStart) {
		this.existStart = existStart;
	}

	/**
	 * @return the existCount
	 */
	public long getExistCount() {
		return existCount;
	}

	/**
	 * @param existCount the existCount to set
	 */
	public void setExistCount(long existCount) {
		this.existCount = existCount;
	}
}
